QT       += core gui multimedia

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

unix{
# 在linux下时，想要qDebug()输出内容，就需要加以下内容.
    CONFIG += console
}
#CONFIG += console
#CONFIG -= debug_and_release

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

##模板变量告诉qmake为这个应用程序生成哪种makefile。
#TEMPLATE            = app
##指定来自moc的所有中间文件放置的目录（含Q_OBJECT宏的头文件转换成标准.h文件的存放目录）。
#MOC_DIR             = temp/moc
##指定Qt资源编译器输出文件的目录（.qrc文件转换成qrc_*.h文件的存放目录）。
#RCC_DIR             = temp/rcc
#UI_DIR              = temp/ui
##指定所有中间文件.o（.obj）放置的目录。
#OBJECTS_DIR         = temp/obj
##指定在何处放置目标文件。
#DESTDIR             = bin

#编译器尽可能少得输出警告信息
CONFIG              += warn_off

SOURCES += \
    callconnect.cpp \
    callwaiting.cpp \
    main.cpp \
    mainwindow.cpp \
    protocolmanager.cpp \
    recvdata.cpp \
    timerwidget.cpp

HEADERS += \
    callconnect.h \
    callwaiting.h \
    mainwindow.h \
    protocolmanager.h \
    recvdata.h \
    timerwidget.h

FORMS += \
    callwaiting.ui \
    mainwindow.ui \
    timerwidget.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    resource.qrc
